<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>表格懒加载</title>
  <script src="./js/jexcel.js"></script>
  <script src="./js/jsuites.js"></script>
  <link rel="stylesheet" href="./css/jsuites.css" type="text/css" />
  <link rel="stylesheet" href="./css/jexcel.css" type="text/css" />
</head>

<body>
  <h1>表格懒加载</h1>
  <p>下表处理60000列。延迟加载方法允许同时渲染多达130行，并将基于滚动渲染其他行。:</p>

  <div id="spreadsheet"></div>
</body>
<script>
  jspreadsheet(document.getElementById('spreadsheet'), {
    csv: './static/demo1.csv',
    csvHeaders: false,
    tableOverflow: true,
    lazyLoading: true,
    loadingSpin: true,
    columns: [
      {
        type: 'text',
        width: 200,
        title: 'Name'
      },
      {
        type: 'dropdown',
        width: 100,
        title: 'Age',
        source: [
          {
            id: 1, name: 'Male'
          },
          {
            id: 2,
            name: 'Female'
          }]
      },
      {
        type: 'text',
        width: 200,
        title: 'City'
      },
    ]
  });
</script>

</html>